package org.bigjava.novelplatform.common.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author ykh
 * @create 2022-03-20 16:04
 */
@Getter
@AllArgsConstructor
public enum UserRole  implements CodeMesEnum{
    /**
     * 用户类型
     */
    USER(0,"普通用户")

    ,ADMIN(1,"管理员")

    ,WRITER(3,"作家")

    ,EDITOR(2,"编辑");

    @EnumValue
    private final Integer code;
    private final String message;
}
